package com.webdemo09.action;

import com.opensymphony.xwork2.ActionSupport;
import com.webdemo09.pojo.User;
import com.webdemo09.service.UserService;

public class AddUser extends ActionSupport {
	private static final long serialVersionUID = 1L;
	private UserService userService;
	private User user;
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public UserService getUserService() {
		return userService;
	}
	public void setUserService(UserService userService) {
		this.userService = userService;
	}
	@Override
	public String execute() throws Exception {
		userService.addUser(user);
		return "show";
	}
}
